//
//  SYSYDownloadImage.h
//  HA
//
//  Created by sy on 2023/12/17.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SYDownloadImage : NSObject

//异步
+(void)po_sysdownloadImagesWith:(NSArray *)array complete: (void(^)(UIImage *imaege, NSInteger index))complete;
//同步
+(void)po_synDownloadImagesWith:(NSArray *)array complete: (void(^)(NSArray *imaeges))complete;
//计算商品图片尺寸
+(CGSize)po_ImageHeightWith:(UIImage *)image width:(CGFloat)width;

//异步
+(void)sy_sysdownloadImageWith:(NSString *)url complete: (void(^)(UIImage *image, NSError * _Nullable error))complete;

//取消图片下载
+(void)sy_cancelLoadImageWith:(NSString *)url;



@end

NS_ASSUME_NONNULL_END
